export const widgetBarCompare = {
    code: 'widget-bar-compare',
    type: 'barchart',
    label: '柱状对比图',
    icon: 'bar-chart',
    preview: require('./preview/widget-bar-compare.png'),
    options: {
      // 配置
      setup: [
        {
          type: 'a-input-text',
          label: '图层名称',
          name: 'layerName',
          required: false,
          placeholder: '',
          value: '柱状对比图',
        },
        {
          type: 'vue-color',
          label: '背景颜色',
          name: 'background',
          required: false,
          placeholder: '',
          value: ''
        },
        {
          type: 'a-divider',
          label: '柱体设置'
        },
        {
          type: 'a-slider',
          label: '最大宽度',
          name: 'maxWidth',
          required: false,
          placeholder: '',
          value: 15,
        },
        {
          type: 'a-slider',
          label: '圆角',
          name: 'radius',
          require: false,
          placeholder: '',
          value: 5,
        },
        {
          type: 'a-divider',
          label: '标题设置'
        },
        {
          type: 'a-switch',
          label: '显示',
          name: 'isNoTitle',
          required: false,
          placeholder: '',
          value: true,
        },
        {
          type: 'a-input-text',
          label: '标题',
          name: 'titleText',
          required: false,
          placeholder: '',
          value: '',
        },
        {
          type: 'vue-color',
          label: '字体颜色',
          name: 'textColor',
          required: false,
          placeholder: '',
          value: '#FFD700'
        },
        {
          type: 'a-select',
          label: '字体粗细',
          name: 'textFontWeight',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'normal', name: '正常'},
            {code: 'bold', name: '粗体'},
            {code: 'bolder', name: '特粗体'},
            {code: 'lighter', name: '细体'}
          ],
          value: 'normal'
        },
        {
          type: 'a-input-number',
          label: '字体大小',
          name: 'textFontSize',
          required: false,
          placeholder: '',
          value: 20
        },
        {
          type: 'a-select',
          label: '字体位置',
          name: 'textAlign',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'center', name: '居中'},
            {code: 'left', name: '左对齐'},
            {code: 'right', name: '右对齐'},
          ],
          value: 'center'
        },
        {
          type: 'a-divider',
          label: '左X轴设置'
        },
        {
          type: 'a-switch',
          label: '显示',
          name: 'hideXLeft',
          required: false,
          placeholder: '',
          value: true,
        },
        {
          type: 'a-input-number',
          label: '数值间隔',
          name: 'splitNumberLeft',
          required: false,
          placeholder: '',
          value: ''
        },
        {
          type: 'vue-color',
          label: '数值颜色',
          name: 'XcolorLeft',
          required: false,
          placeholder: '',
          value: '#fff',
        },
        {
          type: 'a-input-number',
          label: '数值字号',
          name: 'fontSizeXLeft',
          required: false,
          placeholder: '',
          value: 14,
        },
        {
          type: 'a-switch',
          label: '刻度线',
          name: 'tickLineLeft',
          require: false,
          placeholder: '',
          value: false,
        },
        {
          type: 'a-switch',
          label: 'X轴线',
          name: 'xLineLeft',
          require: false,
          placeholder: '',
          value: false,
        },
        {
          type: 'vue-color',
          label: '轴颜色',
          name: 'lineColorXLeft',
          required: false,
          placeholder: '',
          value: '#fff',
        },
        {
          type: 'a-switch',
          label: '竖分割线',
          name: 'SplitLineLeft',
          require: false,
          placeholder: '',
          value: false,
        },
        {
          type: 'vue-color',
          label: '分割线颜色',
          name: 'SplitLineColorLeft',
          required: false,
          placeholder: '',
          value: '#fff',
        },
        {
          type: 'a-input-number',
          label: '分割线宽度',
          name: 'SplitLinefontSizeLeft',
          required: false,
          placeholder: '',
          value: 1,
        },
        {
          type: 'a-switch',
          label: '边框线',
          name: 'frameLineLeft',
          require: false,
          placeholder: '',
          value: false,
        },
        {
          type: 'a-divider',
          label: '右X轴设置'
        },
        {
          type: 'a-switch',
          label: '显示',
          name: 'hideXRight',
          required: false,
          placeholder: '',
          value: true,
        },
        {
          type: 'a-input-number',
          label: '数值间隔',
          name: 'splitNumberRight',
          required: false,
          placeholder: '',
          value: ''
        },
        {
          type: 'vue-color',
          label: '数值颜色',
          name: 'XcolorRight',
          required: false,
          placeholder: '',
          value: '#fff',
        },
        {
          type: 'a-input-number',
          label: '数值字号',
          name: 'fontSizeXRight',
          required: false,
          placeholder: '',
          value: 14,
        },
        {
          type: 'a-switch',
          label: '刻度线',
          name: 'tickLineRight',
          require: false,
          placeholder: '',
          value: false,
        },
        {
          type: 'a-switch',
          label: 'X轴线',
          name: 'xLineRight',
          require: false,
          placeholder: '',
          value: false,
        },
        {
          type: 'vue-color',
          label: '轴颜色',
          name: 'lineColorXRight',
          required: false,
          placeholder: '',
          value: '#fff',
        },
        {
          type: 'a-switch',
          label: '竖分割线',
          name: 'SplitLineRight',
          require: false,
          placeholder: '',
          value: false,
        },
        {
          type: 'vue-color',
          label: '分割线颜色',
          name: 'SplitLineColorRight',
          required: false,
          placeholder: '',
          value: '#fff',
        },
        {
          type: 'a-input-number',
          label: '分割线宽度',
          name: 'SplitLinefontSizeRight',
          required: false,
          placeholder: '',
          value: 1,
        },
        {
          type: 'a-switch',
          label: '边框线',
          name: 'frameLineRight',
          require: false,
          placeholder: '',
          value: false,
        },
        {
          type: 'a-divider',
          label: 'Y轴设置'
        },
        {
          type: 'a-switch',
          label: '显示',
          name: 'hideY',
          required: false,
          placeholder: '',
          value: true,
        },
        {
          type: 'vue-color',
          label: '数值颜色',
          name: 'colorY',
          required: false,
          placeholder: '',
          value: '#fff',
        },
        {
          type: 'a-input-number',
          label: '数值字号',
          name: 'fontSizeY',
          required: false,
          placeholder: '',
          value: 14,
        },
        {
          type: 'a-select',
          label: '数值对齐',
          name: 'textAlign',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'center', name: '居中'},
            {code: 'left', name: '左对齐'},
            {code: 'right', name: '右对齐'},
          ],
          value: 'center'
        },
        {
          type: 'a-switch',
          label: '刻度线',
          name: 'tickLineY',
          require: false,
          placeholder: '',
          value: false,
        },
        {
          type: 'a-switch',
          label: 'Y轴线',
          name: 'lineY',
          require: false,
          placeholder: '',
          value: false,
        },
        {
          type: 'vue-color',
          label: '轴颜色',
          name: 'lineColorY',
          required: false,
          placeholder: '',
          value: '#fff',
        },
        {
          type: 'a-divider',
          label: '数值设定'
        },
        {
          type: 'a-switch',
          label: '显示',
          name: 'isShow',
          required: false,
          placeholder: '',
          value: true
        },
        {
          type: 'a-input-number',
          label: '字体大小',
          name: 'fontSize',
          required: false,
          placeholder: '',
          value: 14
        },
        {
          type: 'vue-color',
          label: '字体颜色',
          name: 'subTextColor',
          required: false,
          placeholder: '',
          value: '#fff'
        },
        {
          type: 'a-select',
          label: '字体粗细',
          name: 'fontWeight',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'normal', name: '正常'},
            {code: 'bold', name: '粗体'},
            {code: 'bolder', name: '特粗体'},
            {code: 'lighter', name: '细体'}
          ],
          value: 'normal'
        },
        {
          type: 'a-divider',
          label: '提示语设置'
        },
        {
          type: 'a-input-number',
          label: '字体大小',
          name: 'tipsFontSize',
          required: false,
          placeholder: '',
          value: 16
        },
        {
          type: 'vue-color',
          label: '字体颜色',
          name: 'lineColor',
          required: false,
          placeholder: '',
        },
        {
          type: 'a-divider',
          label: '坐标轴边距设置'
        },
        {
          type: 'a-slider',
          label: '左右边距(像素)',
          name: 'marginLeftRight',
          required: false,
          placeholder: '',
          value: 10,
        },
        {
          type: 'a-slider',
          label: '顶边距(像素)',
          name: 'marginTop',
          required: false,
          placeholder: '',
          value: 40,
        },
        {
          type: 'a-slider',
          label: '底边距(像素)',
          name: 'marginBottom',
          required: false,
          placeholder: '',
          value: 10,
        },
        {
          type: 'a-divider',
          label: '图例操作'
        },
        {
          type: 'a-switch',
          label: '显示',
          name: 'isShowLegend',
          required: false,
          placeholder: '',
          value: true,
        },
        {
          type: 'vue-color',
          label: '字体颜色',
          name: 'lengedColor',
          required: false,
          placeholder: '',
          value: '#fff',
        },
        {
          type: 'a-input-number',
          label: '字体大小',
          name: 'lengedFontSize',
          required: false,
          placeholder: '',
          value: 16,
        },
        {
          type: 'a-input-number',
          label: '图例宽度',
          name: 'lengedWidth',
          required: false,
          placeholder: '',
          value: 15,
        },
        {
          type: 'a-select',
          label: '横向位置',
          name: 'lateralPosition',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'center', name: '居中'},
            {code: 'left', name: '左对齐'},
            {code: 'right', name: '右对齐'},
          ],
          value: 'center'
        },
        {
          type: 'a-select',
          label: '纵向位置',
          name: 'longitudinalPosition',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'top', name: '顶部'},
            {code: 'bottom', name: '底部'},
          ],
          value: 'top'
        },
        {
          type: 'a-select',
          label: '布局前置',
          name: 'layoutFront',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'vertical', name: '竖排'},
            {code: 'horizontal', name: '横排'},
          ],
          value: 'horizontal'
        },
        {
          type: 'a-divider',
          label: '自定义配色'
        },
        {
          type: 'custom-color',
          label: '配色',
          name: 'customColor',
          required: false,
					limit: -1,
          value: [{color: '#36c5e7'}, {color: '#e68b55'}],
        },
      ],
      // 数据
      data: [
        {
          type: 'a-radio-group',
          label: '数据类型',
          name: 'dataType',
          require: false,
          placeholder: '',
          selectValue: true,
          selectOptions: [
            {
              code: 'staticData',
              name: '静态数据',
            },
            {
              code: 'dynamicData',
              name: '动态数据',
            },
          ],
          value: 'staticData',
        },
        {
          type: 'a-input-number',
          label: '刷新时间(毫秒)',
          name: 'refreshTime',
          relactiveDom: 'dataType',
          relactiveDomValue: 'dynamicData',
          value: 5000
        },
        {
          type: 'a-button',
          label: '静态数据',
          name: 'staticData',
          required: false,
          placeholder: '',
          relactiveDom: 'dataType',
          relactiveDomValue: 'staticData',
          value: [
            {"axis":"07-25","name":"success","data":"2"},
            {"axis":"07-25","name":"fail","data":"10"},
            {"axis":"07-26","name":"success","data":"5"},
            {"axis":"07-26","name":"fail","data":"20"},
            {"axis":"07-27","name":"success","data":"15"},
            {"axis":"07-27","name":"fail","data":"30"},
            {"axis":"07-28","name":"success","data":"10"},
            {"axis":"07-28","name":"fail","data":"12"},
            {"axis":"07-29","name":"success","data":"9"},
            {"axis":"07-29","name":"fail","data":"16"},
          ],
        },
        {
          type: 'a-dict-select-tag',
          label: '动态数据',
          name: 'dynamicData',
          required: false,
          placeholder: '',
          relactiveDom: 'dataType',
          relactiveDomValue: 'dynamicData',
          dictKey: 'gaea_report_data_set,dsname,id',
          value: '',
        },
      ],
      // 坐标
      position: [
        {
          type: 'a-input-number',
          label: '横坐标',
          name: 'left',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '纵坐标',
          name: 'top',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '深度',
          name: 'zIndex',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '宽度',
          name: 'width',
          required: false,
          placeholder: '容器的宽度',
          value: 600,
        },
        {
          type: 'a-input-number',
          label: '高度',
          name: 'height',
          required: false,
          placeholder: '容器高度',
          value: 300
        }
      ],
    }
  }
